<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <base href="<%=basePath%>">
  <meta charset="utf-8">
  <title>工具领取核对</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="layuiadmin/layui/css/layui.css" media="all">
  <link rel="stylesheet" href="layuiadmin/style/admin.css" media="all">
  <style type="text/css">
.layui-table-cell .layui-form-radio {
	position: relative;
	top: 50%;
}
 /* 这段样式只是用于演示 */
  #component-anim .layui-card-body{padding: 15px;}
  #component-anim .component-anim-demo .layui-anim{width: 150px; height: 150px; line-height: 150px; margin: 0 auto 10px; text-align: center; background-color: #009688; cursor: pointer; color: #fff; border-radius: 50%;}
</style>
</head>
<body>
<form class="layui-form" action="" lay-filter="component-form-element">
  <div class="layui-fluid">
  	<div class="layui-row layui-col-space15">
      <div class="layui-col-sm6 layui-col-md3">
        <div class="layui-card">
          <div class="layui-card-header layui-bg-blue">请看摄像头</div>
          <div class="layui-card-body layuiadmin-card-list" id="component-anim">
			<div class="layui-card-body">
	            <ul class="component-anim-demo">
	              <li>
	                <div class="layui-anim" data-anim="layui-anim-up"></div>
	              </li>
	            </ul>
         	</div>
          </div>
          <div class="layui-card-body layuiadmin-card-list">
            <p>
       		  姓名：XXXXXXXX${prisonername}<span class="layuiadmin-span-color">编号：XXXXXXXX${prisonercode}</span>
            </p>
          </div>
        </div>
      </div>  
      <div class="layui-col-sm6 layui-col-md9">
	      <div class="layui-card">
	      	<div class="layui-card-header">领取工具核对</div>
	        <table id="LAY-tooldepot-content-list" lay-filter="LAY-tooldepot-content-list"></table> 
	      </div>
      </div>  
  	</div>
  </div>
  <div class="layui-card-body">
  	 <div class="layui-btn-container">
         <button class="layui-btn layui-btn-fluid" lay-submit lay-filter="component-form-element" >同意借用</button>
         </div>
  </div>
</form>
  <script src="layuiadmin/layui/layui.js"></script> 
  <script src="layuiadmin/js/form.js"></script>
  <script>
  layui.config({
    base: 'layuiadmin/' //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
  }).use(['index', 'contlist', 'table', 'laydate'], function(){
    var table = layui.table
    ,admin = layui.admin
    ,laydate = layui.laydate
    ,form = layui.form;
    
    laydate.render({
		elem: '#date', //弹出页的指定元素生日时期需要为时间格式
	});
    
    table.render({
        elem: '#LAY-tooldepot-content-list'
        ,url:'tooluse/findTooluseListJson/'
        ,cellMinWidth: 20 //全局定义常规单元格的最小宽度，layui 2.2.1 新增
        ,cols: [[
           {type:'numbers'}
          ,{field:'toolplatecode', title: '工具板编号', sort: true}
          ,{field:'toolplatename', title: '工具板名称', sort: true}
		  ,{field:'toolcode', title: '工具编号'}
          ,{field:'toolname', title: '工具名称'}
          ,{field:'inoutamount', title: '领用数'}
        ]]
    });
    

    form.on('submit(component-form-element)', function(data){
      //layer.msg(JSON.stringify(data.field));
      return false;
    });
    
  });
 
  
  </script>
</body>
</html>